<template>
  <div class="cartheader">
    <van-nav-bar title="购物车" left-arrow @click-left="onClickLeft">
      <template #left>
        <van-icon name="arrow-left" size="18" color="black" />
      </template>
    </van-nav-bar>
  </div>
</template>

<script>
export default {
  methods: {
    onClickLeft() {
      history.back()
    }
  }
}
</script>

<style lang="less" scoped>
.cartheader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background-color: #ffffff;
}
</style>